package com.springboot.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import com.springboot.model.vo.VirtualWalletVO;

@FeignClient(name = "virtualwallet-server" , fallback = VirtualWalletFeignFallBack.class)
public interface VirtualWalletFeign {
	
	@GetMapping("/virtualWallets/{walletId}")
	//feign不能自动按照名称来绑定参数，需要写明
	public ResponseEntity<VirtualWalletVO> getVirtualWallet(@PathVariable("walletId") Integer walletId , @RequestParam("token") String token);	
}
